	//状态栏高度（刘海屏）
	const {statusBarHeight} = uni.getSystemInfoSync()
	export const getStatusBarHeight = () => {
		return statusBarHeight || 0
	}
	
	//小程序胶囊按钮信息（top是胶囊按钮最上面的边距离屏幕最上方的距离，height是胶囊按钮的高度）
	//计算导航栏的高度让导航栏和胶囊按钮对齐
	// const titleBarHeighe = (top - statusBarHeight) * 2 + height
	
	export const getNavBarHeight = () => getStatusBarHeight() + getTitleBarHeighe()
	
	export const getTitleBarHeighe = () => {
		// #ifdef MP-WEIXIN
			const {top,height} = uni.getMenuButtonBoundingClientRect()
			return (top - statusBarHeight) * 2 + height
		// #endif
		// #ifndef MP-WEIXIN
			return 40
		// #endif
	}
	
	export const getBackTop = () => {
		// #ifdef MP-WEIXIN
			const {top} = uni.getMenuButtonBoundingClientRect()
			return top
		// #endif
		// #ifndef MP-WEIXIN
			return 40
		// #endif
	}